.listview {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}
/*包含下拉控件*/
.listview.withpulldown .scroller {
  margin-top: -50px;
  /*-webkit-transform: translate(0px, -50px);*/
}
/*临时状态，已下拉*/
.listview.pulleddown .scroller {
  margin-top: 0px;
  /*-webkit-transform: translate(0px, 0px);*/
}
.scroller {
  position: absolute;
  width: 100%;
}
.scroller ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}
.scroller li {
  height: 60px;
  border-bottom: 1px solid #cccdd1;
  /*border-top: 1px solid #fff;*/
  background-color: #ecedf1;
}
.scroller li:last-child {
  border-bottom-width: 0;
}
/* listview editing & selecting */
.scroller li .selection {
  float: left;
  width: 30px;
  height: 100%;
  position: relative;
  /*animation style*/
  margin-left: -30px;
  -webkit-transition: margin-left 0.25s;
  -moz-transition: margin-left 0.25s;
  transition: margin-left 0.25s;
}
.scroller li.editing .selection {
  /*animation style*/
  margin-left: 0px;
}
.scroller li .selection span {
  position: absolute;
  width: 10px;
  height: 10px;
  -webkit-border-radius: 50px;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -5px;
  border: 1px solid #359af6;
}
.scroller li .selection.selected span {
  background: #359af6;
}
.pulldown,
.pullup {
  padding: 5px 10px;
  height: 50px;
  line-height: 40px;
  font-weight: bold;
  font-size: 14px;
  color: #888;
  text-align: center;
}
.pulldown .label,
.pullup .label {
  position: absolute;
  left: 0px;
  right: 0px;
}
.pulldown .icon,
.pullup .icon {
  display: block;
  float: left;
  width: 40px;
  height: 40px;
  background: url("") 0 0 no-repeat;
  -webkit-background-size: 40px 80px;
  background-size: 40px 80px;
  -webkit-transition: -webkit-transform 250ms;
}
.pulldown .icon {
  -webkit-transform: rotate(0deg) translateZ(0);
}
.pullup .icon {
  -webkit-transform: rotate(-180deg) translateZ(0);
}
.pulldown.flip .icon {
  -webkit-transform: rotate(-180deg) translateZ(0);
}
.pullup.flip .icon {
  -webkit-transform: rotate(0deg) translateZ(0);
}
.pulldown.loading .icon,
.pullup.loading .icon {
  background-position: 0 100%;
  -webkit-transform: rotate(0deg) translateZ(0);
  -webkit-transition-duration: 0ms;
  -webkit-animation-name: loading;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
}
@-webkit-keyframes loading {
  from {
    -webkit-transform: rotate(0deg) translateZ(0);
  }
  to {
    -webkit-transform: rotate(360deg) translateZ(0);
  }
}
/*加载更多按钮，这里有一个巧妙的的地方，文字和loading icon的显隐是互斥的，这里在他们的父元素加上或删除.loading class实现*/
.loadmore {
  width: 100%;
  border: 0px;
  margin-bottom: 0px;
  padding: 10px 0px;
  display: none;
}
.loadmore.visible {
  display: block;
}
.loadmore .label {
  line-height: 40px;
  /*与icon同高，保证是否loading状态，loadmore高度不变*/
  width: 100%;
  text-align: center;
  display: block;
}
.loadmore .icon {
  margin: 0 auto;
  display: none;
  width: 40px;
  height: 40px;
  background: url("") 0 0 no-repeat;
  -webkit-background-size: 40px 80px;
  background-size: 40px 80px;
  background-position: 0 100%;
  /*这里是两个图片组合成一个，下面那个是loading*/
  -webkit-transition: -webkit-transform 250ms;
}
.loadmore.loading .icon {
  display: block;
  -webkit-transform: rotate(0deg) translateZ(0);
  -webkit-transition-duration: 0ms;
  -webkit-animation-name: loading;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
}
.loadmore.loading .label {
  display: none;
}
.listview .message {
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  display: none;
}
.listview .message.visible {
  display: block;
}
.listview .message > div {
  display: none;
}
.listview .message > div.visible {
  display: block;
}
